package com.twu.biblioteca;

public class User {

    private int username;
    private String password;
    private boolean loggedIn;
    private String name;
    private String email;
    private int phoneNumber;

    public User(int username, String password, String name, String email, int phoneNumber) {
        this.username = username;
        this.password = password;
        this.loggedIn = false;
        this.name = name;
        this.email = email;
        this.phoneNumber = phoneNumber;
    }

    public boolean passwordEquals(String password) {
        return this.password.equals(password);
    }

    public boolean isLoggedIn() {
        return this.loggedIn;
    }

    public void setLoggedIn() {
        this.loggedIn = true;
    }

    public String membershipString() {
        return "Name: " + this.name + "\nEmail: " + this.email + "\nPhone number: "
                + phoneNumber + "\n";
    }
}
